package com.hzdl.house_mgr.mapper;

import com.hzdl.house_mgr.bean.BaseStat;
import com.hzdl.house_mgr.bean.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserMapper {
    List<User> findAll(User user);
    int getCount(User user);
    int userAdd(User user);
    int userUpd(User userId);
    int del(Integer userId);
    List<BaseStat> getCountByAddress();
    int resetUserPwd(Integer userId);
    User chkLoginIdExits(String loginName);
    int findUserById(String idCard);
    int register(User user);
    //登录验证账号密码
    User chkLoginNameAndUserPwd(@Param("loginName") String loginName,@Param("userPwd") String userPwd);

    User findUserByFace(String faceId);

    User findUserByUserId(Integer userId);
}
